package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tanghao
 * @date 2022/6/24
 */
@ApiModel(value = "article_data")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_data")
public class ArticleDataPO {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value = "文章id")
    private Long articleId;

    /**
     * 浏览量
     */
    @TableField(value = "look_amount")
    @ApiModelProperty(value = "浏览量")
    private Long lookAmount;

    /**
     * 点赞数
     */
    @TableField(value = "support_amount")
    @ApiModelProperty(value = "点赞数")
    private Long supportAmount;

    /**
     * 收藏数
     */
    @TableField(value = "collection_amount")
    @ApiModelProperty(value = "收藏数")
    private Long collectionAmount;

    /**
     * 评论数
     */
    @TableField(value = "comment_amount")
    @ApiModelProperty(value = "评论数")
    private Long commentAmount;

    /**
     * 热度
     */
    @TableField(value = "hot_value")
    @ApiModelProperty(value = "热度")
    private Long hotValue;
}